import request from '@/utils/request'

// 查询一带一路列表
export function listOneroad(query) {
  return request({
    url: '/yw/oneroad/list',
    method: 'get',
    params: query
  })
}

// 查询一带一路详细
export function getOneroad(id) {
  return request({
    url: '/yw/oneroad/' + id,
    method: 'get'
  })
}

// 新增一带一路
export function addOneroad(data) {
  return request({
    url: '/yw/oneroad',
    method: 'post',
    data: data
  })
}

// 修改一带一路
export function updateOneroad(data) {
  return request({
    url: '/yw/oneroad',
    method: 'put',
    data: data
  })
}

// 删除一带一路
export function delOneroad(id) {
  return request({
    url: '/yw/oneroad/' + id,
    method: 'delete'
  })
}
